export default {
	'POST /api/rule/page': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: {
				pageNum: 2,
				pageSize: 1,
				size: 1,
				startRow: 2,
				endRow: 2,
				total: 2,
				pages: 2,
				list: [
					{
						id: '123123',
						state: 2,
						stateName: '禁用',
						cycle: 3,
						creator: 1,
						create_time: '2019-01-01 00:11:00',
						creator_name: '创建人',
						update_time: '2019-01-02 00:22:00',
						updater: 1,
						updater_name: '修改人',
						version: 0,
						visible: 1,
						users: [
							{
								id: 1,
								name: 'cnmb'
							}
						],
						name: '规则名称'
					}
				]
			}
		});
	},

	'POST /api/rule/copy/:id': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: '12312312'
		});
	},

	'POST /api/rule/create': (req, res) => {
		res.send({
			code: '200',
			errorCode: 'Success',
			data: '312312321'
		});
	},

	'POST /api/rule/modify': (req, res) => {
		res.send({
			code: '200',
			errorCode: 'Success'
		});
	},

	'POST /api/rule/detail/:id': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: {
				id: '123123',
				state: 2,
				cycle: 3,
				creator: 1,
				create_time: '2019-01-01 00:11:00',
				creator_name: '创建人',
				update_time: '2019-01-02 00:22:00',
				updater: 1,
				updater_name: '修改人',
				version: 0,
				visible: 1,
				users: [
					{
						id: '27',
						name: '徐任远'
					}
				]
			}
		});
	},

	'POST /api/rule_task/target/list': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: [
				{
					id: '586041',
					name: '建筑一楼',
					state: '1'
				},
				{
					id: '2066',
					name: '扬帆楼二楼',
					state: '1'
				}
			]
		});
	},

	'POST /api/rule_target/item/detail/:id': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: {
				child: {
					'123': {
						disable: false,
						type: 1,
						name: '901门口旁室内消火栓',
						question: [
							{
								id: '1',
								name: '题目名称1',
								state: 1
							},
							{
								id: '2',
								name: '题目名称2',
								state: 2
							}
						]
					},
					'124': {
						disable: true,
						type: 1,
						name: '902门口旁室内消火栓',
						question: [
							{
								id: '3',
								name: '题目名称',
								state: 2
							}
						]
					}
				},
				plan: ['123', '124']
			}
		});
	},

	'POST /api/rule_target/batch': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS'
		});
	},

	'POST /api/rule_target/modify': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS'
		});
	},

	'POST /api/rule_task/page': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: {
				pageNum: 2,
				pageSize: 1,
				size: 1,
				startRow: 2,
				endRow: 2,
				total: 2,
				pages: 2,
				list: [
					{
						id: '123123',
						name: '任务名称',
						users: ['用户名称'],
						doneTime: '2019-01-02 00:22:00'
					}
				]
			}
		});
	},

	'POST /api/floor_plan/page': (req, res) => {
		res.send({
			code: '200',
			errorMsg: 'SUCCESS',
			data: {
				pageNum: 1,
				pageSize: 10,
				size: 10,
				total: 46,
				pages: 5,
				list: [
					{
						id: '586041',
						buildId: '586038',
						floorName: '一楼',
						floorType: '2',
						floor: 0,
						creator: '2',
						creatorName: 'admin',
						createTime: '2018-08-29 15:25:19',
						updateTime: '2018-08-29 15:25:19',
						buildAddress: 'xxxxxx',
						buildName: '建筑',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '586039',
						buildId: '586038',
						floorName: '楼层1',
						floorType: '2',
						floor: 0,
						creator: '2',
						creatorName: 'admin',
						createTime: '2018-08-29 15:25:19',
						updateTime: '2018-08-29 15:25:19',
						buildAddress: 'xxxxxx',
						buildName: '建筑',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2129',
						buildId: '2119',
						floorName: '1楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bm3r8r4gpahrd1ue61brnb2a7.jpg',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-28 13:39:35',
						updateTime: '2018-01-15 13:42:48',
						buildName: '别墅区',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2128',
						buildId: '2118',
						floorName: '六楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnnetj3gmiq19qt15kv1dl71l2p7.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:05:04',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2127',
						buildId: '2118',
						floorName: '五楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnnet3u51tpfksb1c64gjh1gv27.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:04:41',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2126',
						buildId: '2118',
						floorName: '四楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnnesn97pg0t45ct11nlj16pv7.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:04:20',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2125',
						buildId: '2118',
						floorName: '三楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnnes2m31u141vr81ppk1u6p19gl7.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:03:58',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2124',
						buildId: '2118',
						floorName: '二楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnnere341b0vnds1nqkbc81ucb7.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:03:37',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2123',
						buildId: '2118',
						floorName: '一楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1bnneq7af18vi1p98189o1tvvktb7.png',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:03:14',
						updateTime: '2018-01-15 13:42:48',
						buildName: '启航楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					},
					{
						id: '2122',
						buildId: '2066',
						floorName: '三楼',
						floorType: '2',
						floor: 0,
						floorPlan: 'https://lancheng.cdn.bcebos.com/img/o_1blhe0uq013gj3ftcihb5k6ao7.jpg',
						creator: '2',
						creatorName: 'admin',
						createTime: '2017-07-21 10:01:14',
						updateTime: '2018-01-15 13:42:48',
						buildName: '扬帆楼',
						floorTypeName: '普通楼层',
						existsReportTemplate: '0'
					}
				]
			}
		});
	},


	'POST /api/rule_task/report/detail/:id': (req, res) => {
		res.send({
			"code": "200",
			"errorMsg": "SUCCESS",
			"data": {
				"task": {
					"id": "12312",
					"name": "任务名称",
					"status": 1,
					"startTime": "2019-09-01 04:08:12",
					"endTime": "2019-09-30 04:08:12",
					"doneTime": "2019-09-30 04:08:12",
					"total": 100,
					"count": 1,
					"rate": "10.10"
				},
				"latest": {
					"startTime": "2019-09-01 04:08:12",
					"endTime": "2019-09-30 04:08:12",
					"doneTime": "2019-09-30 04:08:12",
					"total": 100,
					"count": 1
				},
				"employer": {
					"id": "3",
					"name": "鼓楼广场",
					"userId": "11",
					"userName": "王 X X",
					"userMobile": "1233455456",
					"address": "浙江省宁波市鄞州区"
				},
				"entrust": {
					"id": "3",
					"name": "鼓楼广场",
					"userId": "11",
					"userName": "王 X X",
					"userMobile": "123345546"
				},
				"users": [
					{
						"id": "1",
						"name": "张 X X"
					},
					{
						"id": "1",
						"name": "张 X X"
					}
				],
				"stat": [{
					"total": 131,
					"count": 121,
					"rate": "80.01",
					"name": '摄像头'
				},{
					"total": 132,
					"count": 120,
					"rate": "70.01",
					"name": '集中控制器'
				}],
				"target": [
					{
						"id": "12312",
						"name": "鼓楼广场A幢-9楼",
						"type": 3,
						"total": 10,
						"count": 1,
						"check": [
							{
								"id": 3,
								"name": "消防箱",
								"total": 10,
								"count": 1,
								"child": [
									{
										"id": "123",
										"name": "B区140号车位旁边消防箱",
										"question": [
											{
												"id": "1231",
												"name": "泵控制柜供电情况是否正常",
												"index": 1,
												"remark": "意见",
												"score": 100,
												"item": "正常"
											},
											
											{
												"id": "1232",
												"name": "泵控制柜供电情况是否正常",
												"index": 1,
												"score": 100,
												"tags": [
												],
												"images": [
												
												],
												"item": "正常"
											},
											{
												"id": "1233",
												"name": "泵控制柜供电情况是否正常",
												"index": 1,
												"remark": "意见",
												"score": 0,
												"tags": [
													"标签"
												],
												"images": [
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg",
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg"
												],
												"item": "异常"
											},
											{
												"id": "1234",
												"name": "泵控制柜供电情况是否正常",
												"index": 1,
												"remark": "意见",
												"score": 100,
												"tags": [
													"标签"
												],
												"images": [
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg",
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg"
												],
												"item": "异常"
											},
											{
												"id": "1235",
												"name": "泵控制柜供电情况是否正常",
												"index": 1,
												"remark": "意见",
												"score": 0,
												"tags": [
													"标签"
												],
												"images": [
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg",
													"https://lancheng.cdn.bcebos.com/img/%E5%9B%BD%E5%AE%B6%E7%A7%91%E6%8A%80%E5%9B%AD.jpg"
												],
												"item": "异常"
											},
										]
									}
								]
							}
						]
					}
				]
			}
		})
	}
};
